package com.ep.baselibrary.http;

/**
 * Created by Administrator on 2017/7/3.
 */

public interface EngineCallBack {

    /**
     * 网络请求错误
     *
     * @param e
     */
    void onError(Exception e);

    /**
     * 网络请求成功
     *
     * @param result
     */
    void onSuccess(String result);

    /**
     * 默认的引擎
     */
    EngineCallBack DEFAULT_CALL_BACK=new EngineCallBack() {

        @Override
        public void onError(Exception e) {

        }

        @Override
        public void onSuccess(String result) {

        }
    };

}
